package com.inphase.myfood.controller;

import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.inphase.myfood.dao.base.BaseController;

@Controller
@RequestMapping("/torder")
public class TOrderController extends BaseController{
	
	@RequestMapping("/save.do")
	@ResponseBody
	public Map<String, Object> saveTOrder() {
		Map<String, Object> map = null;
		return map;
	}
	
	/**
	 * 根据登录名查询用户的订单信息
	 * @author Tangxuebing
	 * @param userName 用户的登录名
	 * @return 返回订单信息
	 */
	@RequestMapping("/save.do")
	@ResponseBody
	public Map<String, Object> getTOrdersByLoginName(
			@RequestParam(required = true, value = "loginName") String userName) {
		Map<String, Object> map = null;
		return map;
	}
}
